#include "FlightState.h"

#include <errno.h>
#include <iostream>


FlightState::FlightState(Status status) : status(status){
}

Status FlightState::getStatus(){
	return this->status;
}

void FlightState::startTransition(Status newStatus){
	this->status = newStatus;
}

//Para despegue o aterrizaje
bool FlightState::needsRunwayToLand(){
	return this->status == IN_THE_AIR;
}

bool FlightState::needsRunwayToTakeOff(){
	return this->status == PARKED;
}
